/*
 * Converter.java
 *
 * Created on 10 February 2005, 14:56
 */

package com.agentfactory.platform.mts;

import java.util.Hashtable;
/**
 *
 * @author rem
 */
public abstract class Converter {
    private static Hashtable converters;
    
    public abstract String toFOSString(String obj);
    public abstract String fromFOSString(String fos);
    
    public static Converter getConverter(String language) {
        if (converters == null) {
            converters = new Hashtable();
        
            // TODO (Rem Collier): Move this to a configuration file
//            converters.put("fipa-sl0", new FIPASL0Converter());
        }
        
        
        return (Converter) converters.get(language);
    }
    
    public static void main( String[] args ) {
//        Converter converter = Converter.getConverter( "fipa-sl0" );
//        System.out.println( converter.fromFOSString( "event-record(:what(born-agent(:agent(xx))),:where(xxx),:when(uyyy))") );
    }
}
